home *** CD-ROM | disk | FTP | other *** search
Makefile | 2002-10-28 | 944 b | 45 lines |
- CC = vc
- CFLAGS = -c -+ -O2 -Iinclude: -DVBCC
- CCFLAGS =
- LD = vc
- LDFLAGS =
- LDLIBS = -lamiga
-
- # default target to make - all examples
- all: single multiple loadsave big
-
-
- # specifics for all targets
- single: single.o
- $(LD) $(LDFLAGS) -o $@ single.o $(LDLIBS)
-
- multiple: multiple.o
- $(LD) $(LDFLAGS) -o $@ multiple.o $(LDLIBS)
-
- loadsave: loadsave.o
- $(LD) $(LDFLAGS) -o $@ loadsave.o $(LDLIBS)
-
- big: big.o
- $(LD) $(LDFLAGS) -o $@ big.o $(LDLIBS)
-
-
- # CLI command used when compiling. This is generic and will be called for all the
- # dependancies that need compiling.
- .c.o:
- $(CC) $(CCFLAGS) $(CFLAGS) -o $@ $<
-
-
- # A list of all project dependancies. Since the list of header files is so small, they
- # are just put in after the source files instead of defining another variable to hold them
- # all.
- single.o: single.c
- multiple.o: multiple.c
- loadsave.o: loadsave.c
- big.o: big.c
-
-
- # A little something to clean it all up
- clean:
- delete #?.o
-
-